import request from "@/api/request";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired, type QueryDto } from "../../interface";

/**
 * /sys/log/list
 */
export function getSysLogList(params: GetSysLogListParams, config?: AxiosRequestConfig) {
    const paramsInput = {
        ...params.queryDto,
        logType: params.logType,
    };
    return request.get<DeepRequired<any>>(`/sys/log/list`, {
        params: paramsInput,
        ...config,
    });
}

export interface GetSysLogListParams {
    queryDto: QueryDto;
    logType: string;
}
